package view;

import java.util.Observable;
import java.util.Observer;


import model.database.CalendarWrapper;
import model.schedule.ScheduleExecuter;

public class ScheduleExecuterListener implements Observer {

	public ScheduleExecuterListener(ScheduleExecuter scheduleExecuter) {
		scheduleExecuter.addObserver(this);
	}

	public void update(Observable arg0, Object arg1) {
		ScheduleExecuter se = (ScheduleExecuter) arg0;
		
		if (arg1 instanceof String) {
			String message = (String)arg1;
			System.out.println("ScheduleExecuter "+(new CalendarWrapper())+": "+message);
		}
	}

}
